<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="css/welcome.css" rel="stylesheet">
    <script src="js/jquery-1.11.1.min.js"> </script>
</head>
<body>
    <div class="content">
        <h1>
            <span class="letter">W</span>
            <span class="letter">e</span>
            <span class="letter">l</span>
            <span class="letter">c</span>
            <span class="letter">o</span>
            <span class="letter">m</span>
            <span class="letter">e</span>
            <div class="underline"></div>
        </h1>
    </div>
    <script>
        var email = getUrlParam("email");
        if(email) {
            $(".underline").text(email);
        } else {
            window.location.href = "login.html";
        }
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r!=null) return unescape(r[2]); return null; //返回参数值
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/TweenMax.min.js"> </script>
    <script src="js/welcome.js"></script>
</body>
</html>